﻿import com.atomos.system.*;
import com.atomos.log.*;
import com.atomos.particle.*;
import com.atomos.strategy.emission.*;
import com.atomos.strategy.action.*;
import com.atomos.strategy.initialize.*;

import com.bourre.log.*;
import com.bourre.utils.FlashInspectorLayout;

import com.kairos.log.KairosDebug;

import flexunit.framework.TestSuite;

private function onCreationComplete():void
{
	Logger.getInstance().setLevel( LogLevel.ALL );
	Logger.getInstance().addLogListener( FlashInspectorLayout.getInstance(), PixlibDebug.CHANNEL );
	Logger.getInstance().addLogListener( FlashInspectorLayout.getInstance(), KairosDebug.CHANNEL );
	Logger.getInstance().addLogListener( FlashInspectorLayout.getInstance(), AtomosDebug.CHANNEL );
	
	testRunner.test = createSuite();
	testRunner.startTest();
}

private function createSuite() : TestSuite
{
	
	var ts:TestSuite = new TestSuite();
	
	// com.atomos.particle
	ts.addTestSuite( ParticleManagerTest );
	
	// com.atomos.emitter
	ts.addTestSuite( AbstractParticleSystemTest );
	ts.addTestSuite( SimpleParticleSystemTest );
	
	// com.atomos.strategy.action
		
	// com.atomos.strategy.emission
	ts.addTestSuite( AbstractEmissionTest );
	ts.addTestSuite( ByRateEmissionTest );
	ts.addTestSuite( ByRateLimitedEmissionTest );
	
	// com.atomos.strategy.initialize
	
	return ts;
}
